import subject.homework.zoosystrem.sons1.*;
import subject.homework.zoosystrem.father.*;

public class Main {
    public static void main(String[] args) {
        //UserCollections testAACollection = new UserCollections();
        AnimalsOfParkCollection testAACollection = new AnimalsOfParkCollection();
        ParkInfo testPark = new ParkInfo("海洋馆");
        testAACollection.setAnimalOfPark(testPark);
       // testAnimalCollection.setAnimalTypeNum("哺乳类");


        UserAnimal fish1 = new UserAnimal("海豚",10,"海洋馆","哺乳类");
        UserAnimal fish2 = new UserAnimal("鲸鱼",5,"海洋馆","哺乳类");
        UserAnimal fish3 = new UserAnimal("鲨鱼",7,"海洋馆","鱼类");
        UserAnimal fish4 = new UserAnimal("鳐鱼",8,"海洋馆","鱼类");

        UserAdmin adm1 = new UserAdmin("张三","饲养员");
        UserAdmin adm2 = new UserAdmin("李四","动物医生");
        UserAdmin adm3 = new UserAdmin("王五","总管");


        testAACollection.addUser(fish1);
        testAACollection.addUser(fish2);
        testAACollection.addUser(fish3);


        testAACollection.displayAllAnimals();
        System.out.println("-----------------------------\n");

        //testAACollection.deleteUser("");

        testAACollection.updateUser(fish3,fish4);
        testAACollection.displayAllAnimals();

        System.out.println("-----------------------------\n");

        ParkAdminCollection oceanParkAdminCollection = new ParkAdminCollection();
        oceanParkAdminCollection.setParkBelongsTo(testPark);

        oceanParkAdminCollection.addAdmin(adm1);
        oceanParkAdminCollection.addAdmin(adm2);

        oceanParkAdminCollection.displayAllAdmin();




    }
}